package com.itheima.inner.test3;

public class Test {

    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.drink();
        dog.eat();

        Cat cat = new Cat();
        cat.drink();
        cat.eat();

        //Animal animal = new Animal();//抽象类不能被实例化  只能创建抽象类的子类对象
        //animal.eat();
        // Pig pig = new Pig();
    }
}
